﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Brilliant.ORM
{
    /// <summary>
    /// 实体属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
    public class EntityAttribute : Attribute
    {
        /// <summary>
        /// 表名称
        /// </summary>
        public string Table { get; set; }

        /// <summary>
        /// 列名称
        /// </summary>
        public string Column { get; set; }

        /// <summary>
        /// 主键
        /// </summary>
        public string PK { get; set; }

        /// <summary>
        /// 外键
        /// </summary>
        public string FK { get; set; }
    }
}
